//
//  DKModuleController.h
//  Whistle
//
//  Created by ZhangAo on 22/01/2018.
//  Copyright © 2018 BookSir. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 *  单例类，用于模块之间的交互
 */
@interface DKModuleController : NSObject

// 初始化，只应该被调用一次
- (void)setupWithLaunchOptions:(NSDictionary *)launchOptions;

// 用户登录成功
- (void)userDidLogin;

// 用户注销
- (void)userDidLogout;

// 从后台唤醒
- (void)awakeFromBackground;

// 网络环境变化：是否有网络、是否是低速网络
- (void)reachabilityNetworkStatusChanged:(BOOL)isReachable isSlowlyNetworking:(BOOL)isSlowlyNetworking;

// 清理模块
- (void)clearAllModules;

@end
